home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Gold Collection / Software Vault - The Gold Collection (American Databankers) (1993).ISO / cdr25 / gnuplsrc.zip / GNUSHELL.H < prev    next >
C/C++ Source or Header  |  1993-03-21  |  3KB  |  86 lines

  1. /* gnushell header file */
  2. /*
  3. ** static char RCSid[]="$Id: gnushell.h,v 1.2 1992/07/26 12:37:55 fearick Exp fearick $" ;
  4. */
  5.  
  6. /* Update Log
  7. **
  8.  * $Log: gnushell.h,v $
  9.  * Revision 1.2  1992/07/26  12:37:55  fearick
  10.  * Initial 32-bit version
  11.  *
  12.  * Revision 1.1  1992/07/25  15:45:05  fearick
  13.  * Initial revision
  14.  *
  15.  *
  16. */ 
  17.  
  18.     /* include resource defines */
  19.     
  20. #ifndef DISPDEFS_H
  21. #include "dispdefs.h"
  22. #endif
  23.  
  24. /*==== own window messages  =================================================*/
  25.  
  26. #define WM_GNUPLOT          (WM_USER+20)
  27. #define WM_GNU_NOHELP       (WM_USER+21)
  28. #define WM_GNU_NOEXE        (WM_USER+22)
  29. #define WM_USER_SET_DATA    (WM_USER+90)
  30. #define WM_USER_GET_DATA    (WM_USER+91)
  31. #define WM_USER_CHGFONT     (WM_USER+10) 
  32.  
  33. /*==== various names ========================================================*/
  34.  
  35. #define GNUPIPE     "\\pipe\\gnuplot"       /* named pipe to gnuplot */
  36. #define ENVGNUHELP  "GNUHELP"               /* gnuplot help envionment name */
  37. #define ENVGNUPLOT  "GNUPLOT"               /* general gnuplot environment */
  38. #define GNUEXEFILE  "gnuplot.exe"           /* exe file name */
  39. #define GNUHELPFILE "gnuplot.gih"           /* help file name */
  40. #define GNUTERMINIT "GNUTERM=pm"            /* terminal setup string */
  41. #define INITIAL_FONT "12.Helvetica"         /* initial font for plots */
  42.  
  43. /*==== global data  ==========================================================*/
  44.  
  45. HAB         hab ;                   // application anchor block handle 
  46. HWND           hApp ;                  // application window handle 
  47. HWND        hwndFrame ;             // frame window handle 
  48.  
  49. /*==== stuff for querying printer capability =================================*/
  50.  
  51. typedef struct {  //query data for printer setup
  52.     float xsize ;
  53.     float ysize ;
  54.     float xfrac ;
  55.     float yfrac ;
  56.     short caps ;
  57.     char  name[32] ;
  58.     } QPRINT, *PQPRINT ;
  59.  
  60. #define QP_CAPS_NORMAL 0
  61. #define QP_CAPS_FILE   1   /* can print to file */
  62.  
  63. /*==== function declarations =================================================*/
  64.  
  65. short            ScalePS( HPS, PRECTL, USHORT ) ;
  66. void             PlotThings( HPS, long ) ;
  67. void             SetupPrinter( HWND) ;
  68. HDC              OpenPrinterDC( HAB, LONG, char* ) ;
  69. void             SetPrinterMode( HWND ) ;
  70. short            QueryPrinterCaps( HWND ) ;
  71. MPARAM           PrintCmdProc( HWND, ULONG, MPARAM, MPARAM ) ;
  72. MRESULT EXPENTRY PrintDlgProc( HWND, ULONG, MPARAM, MPARAM ) ;
  73. MRESULT EXPENTRY QFontDlgProc( HWND ,ULONG, MPARAM, MPARAM ) ;
  74. MRESULT EXPENTRY QPrintDlgProc (HWND, ULONG, MPARAM, MPARAM) ;
  75. MRESULT EXPENTRY DisplayClientWndProc(HWND, ULONG, MPARAM, MPARAM);
  76. MRESULT EXPENTRY About(HWND, ULONG, MPARAM, MPARAM);
  77.  
  78.         /* own window functions... */
  79. void ChangeCheck( HWND, SHORT, SHORT ) ;
  80. void WinSetDlgItemFloat( HWND, USHORT, float ) ;
  81. void WinSetDlgItemFloatF( HWND, USHORT, int, float ) ;
  82. void WinQueryDlgItemFloat( HWND, USHORT, float* ) ;
  83. void WinSetDlgItemLong( HWND, USHORT, ULONG, BOOL ) ;
  84.  
  85.  
  86.